package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CabinetLoadPlan;
import com.wing.cabinet.model.request.CabinetLoadPlanForm;
import com.wing.cabinet.model.response.CabinetLoadPlanVO;
import com.wing.common.utils.JsonResult;
import com.wing.enterprise.product.model.response.ProductPackLabelVO;

import java.util.List;
import java.util.Map;

/**
 * 上货计划-Service
 *
 * @author
 */
public interface CabinetLoadPlanService extends IService<CabinetLoadPlan> {

    /**
     * 添加
     *
     * @param cabinetLoadPlanForm
     * @return
     */
    int add(CabinetLoadPlanForm cabinetLoadPlanForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CabinetLoadPlanVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CabinetLoadPlanVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CabinetLoadPlanVO get4appById(Long id);

    /**
     * 上货计划审核
     * @param cabinetLoadPlan
     * @return
     */
    int audit(CabinetLoadPlan cabinetLoadPlan);

    JsonResult<ProductPackLabelVO> getReceivePackLabel(Long id, String labelCode);
}
